package loc.dd.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import loc.dd.entity.User;

/**
*@author 作者：huyaqi
*@version 创作时间:2023年9月22日上午10:34:20
*
*/
@Repository
public interface UserMapper {
	int getlogin(@Param("userphone") String userphone,@Param("password") String password); 
	
	int checklogin(@Param("userphone") String userphone); 
	
	List<Map<String, Object>> getuser(@Param("page") int page,@Param("pageSize") int pageSize);
	 
	 List<Map<String, Object>> selectuser(@Param("username") String username,@Param("page") int page,@Param("pageSize") int pageSize);
	
	 int getoneuser(@Param("userphone") String userphone,@Param("id") int id);
	 
	 int checkshifouuser(@Param("userphone") String userphone);
	 
	 int getsum();
	 
	 int selectsum(@Param("username") String username);
	 
	 int edituser(User user);
	 
	 int adduser(User user);
	 
	 HashMap<String, Object> getnewuser(@Param("id") int id);
	 
	 HashMap<String, Object> getloginuser(@Param("userphone") String userphone);
	 
	 String getAid(@Param("uid") String uid);
	 
	 String getqx(@Param("uid") String uid);
	 
	 List<Map<String, Object>> getjifenrenyuan(@Param("aidList") List<String> aidList);
}
